#ifndef MyGameScene_H
#define MyGameScene_H
#include "Math/Util.h"
#include "cocos2d.h"

using namespace cocos2d;
class CGameLayer : public CCLayer
{
public:
	virtual void update(float dt);
	void updateBox2dWorld(float dt);

	virtual bool ccTouchBegan(CCTouch* pTouch, CCEvent *pEvent);
	virtual void ccTouchMoved(CCTouch* pTouch, CCEvent *pEvent);
	virtual void ccTouchEnded(CCTouch* pTouch, CCEvent *pEvent);
	virtual void ccTouchCancelled(CCTouch* pTouch, CCEvent *pEvent);

	void CleanLayer();
};
class CGameScene : public cocos2d::CCScene
{
public:
	CGameScene();
	~CGameScene();

	static cocos2d::CCScene* scene();
	void Init(int level);
	CCLayer* GetLayer();
private:
	CCLayer*			mLayer;
};
inline CCLayer*
CGameScene::GetLayer()
{
	return mLayer;
}


#endif